package com.unione.unione_protocol

import com.unione.unione_network.BaseRepository
import com.unione.unione_network.UnioneClient
import com.unione.unione_protocol.robot_auto.RobotAutoService
import com.unione.unione_protocol.third_api.GdService
import com.unione.unione_protocol.third_api.bean.GdWeatherInfoWrapper

object GdRepository: BaseRepository(), GdService {

    private val service by lazy {
        UnioneClient.create(
            GdService::class.java,
            gdWeatherUrl
        )
    }
    override suspend fun getWeatherInfo(key: String, city: String): GdWeatherInfoWrapper {
        return service.getWeatherInfo(key, city)
    }


}